import request from '@/utils/request.js'

// 登录接口
export  function login(loginData) {
  return request({
    url: '/access/login',
    method: 'POST',
    data: loginData

  })
}

// 注册接口
export  function register(registerData) {
  return request({
    url: '/access/register',
    method: 'POST',
    data: registerData
  })
}

// 退出登录接口
export  function logout(userId) {
  return request({
    url: `/access/logout?userId=${userId}`
  })
}

